home *** CD-ROM | disk | FTP | other *** search
- package symantec.itools.db.net;
-
- import java.io.DataInputStream;
- import java.io.DataOutputStream;
- import java.io.IOException;
- import symjava.sql.SQLException;
-
- class NumberField extends Field {
- void read(DataInputStream is) throws SQLException, IOException, ErrorException {
- super.read(is);
- if (!super._null) {
- ServerObject obj = (ServerObject)NetClass.getNextObject(is);
- if (obj.getType() != 51 && obj.getType() != 52) {
- ((ServerObject)this).onObjectError(obj);
- } else {
- this.readData(obj);
- }
- }
-
- ServerObject obj = (ServerObject)NetClass.getNextObject(is);
- if (obj.getType() != 50) {
- ((ServerObject)this).onObjectError(obj);
- }
-
- }
-
- void write(DataOutputStream os) throws IOException {
- super.write(os);
- this.writeData(os);
- EOT eot = new EOT();
- eot.write(os);
- }
-
- void readData(ServerObject data) throws SQLException, IOException, ErrorException {
- throw new IOException("Internal Error: Method not implemented");
- }
-
- void writeData(DataOutputStream os) throws IOException {
- throw new IOException("Internal Error: Method not implemented");
- }
- }
-